<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>API配置</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f6f7;
            margin: 0;
            padding: 0;
        }
        .container {
            width: 600px;
            margin: 50px auto;
            padding: 20px;
            background-color: #ffffff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
        }
        h1 {
            text-align: center;
            color: #1877f2;
            margin-bottom: 20px;
        }
        .input-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 5px;
            color: #5e6c84;
        }
        input[type="text"] {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccd0d5;
            border-radius: 5px;
            font-size: 16px;
            box-sizing: border-box;
        }
        .submit-btn {
            padding: 10px;
            background-color: #1877f2;
            border: none;
            border-radius: 5px;
            color: white;
            font-size: 16px;
            cursor: pointer;
            width: 60%;
            text-align: center;
            margin: 0 auto;
        }
        input[type="submit"]:hover {
            background-color: #166fe0;
        }
        #message {
            text-align: center;
            margin: 0 auto;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>填写API信息</h1>
        <form action="#" method="" id="infoForm">

            <div class="input-group">
                <label for="key">模型</label>
                <input type="text" id="form-model" name="key" placeholder="qwen-max-latest">
            </div>

            <div class="input-group">
                <label for="url">API URL</label>
                <input type="text" id="form-url" name="url" placeholder="https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions">
            </div>

            <div class="input-group">
                <label for="key">Key</label>
                <input type="text" id="form-key" name="key" placeholder="请输入字符串Key">
            </div>

            <!-- <input type="submit" value="提交"> -->
            <div id="submit-div" class="submit-btn">提交</div>
        </form>
        <!-- <div id="message" style="padding: 4px;color: green;">保存成功</div> -->
    </div>
    <script src="options.js"></script>
</body>
</html>